package rstk;

import javax.swing.UIManager;
import javax.swing.plaf.synth.SynthLookAndFeel;

/**
 * Creates the main UI for RSTKUI
 * @author AmberJoy
 *
 */
public class RSTKUI {

	public static void main(String[] args){
		RSTKUI rstkui = new RSTKUI();
		rstkui.run();
	}
	public RSTKUI(){
		//TODO: Initialize Tool Managers Here
	}
	/**
	 * Runs the program
	 */
	public void run(){
		try {
			initLookAndFeel();
		} catch (Exception e) {
			//log error, do not throw
			e.printStackTrace();
		}
	}
	/*
	 * 
	 */
	private void buildPane(){
		
	}
	/*
	 * Loads in the Look and Feel from a Synth.xml
	 */
	private void initLookAndFeel() {
		SynthLookAndFeel lookAndFeel = new SynthLookAndFeel();
		try {
			lookAndFeel.load(RSTKUI.class.getResourceAsStream("RSTKSynth.xml"),
					RSTKUI.class);
			UIManager.setLookAndFeel(lookAndFeel);
		} catch (Exception e) {
			//TODO: Log Error
			e.printStackTrace();
		}
	}
}
